<template>
  <div>
      <h1>输入错误</h1>
      <button @click="handler">返回</button>
      <hr>
      
  </div>
</template>

<script setup>
import { useRouter } from "vue-router"


const router = useRouter()

const handler = e => {
  sessionStorage.removeItem('user')
  router.replace('/')
}

</script>

<style lang="scss" scoped>
  h1{
      color: red;
  }
</style>